package com.yzh.oop4.teacher;

public  class MyClass implements MyInterface {
    @Override
    public void method1() {
        System.out.println("------abstract method1-------");
    }

//    public static void method2(){
//        System.out.println("-------MyClass static method-------");
//    }

    public void method3(){
        System.out.println("----------MyClass default method------------");
    }

    public static void main(String[] args) {
            //MyClass.method2();
            MyInterface.method2();
            MyClass myClass = new MyClass();
            //myClass.method2();
            //MyInterface.method3();
            myClass.method3();
            myClass.method4();
    }
}
